var status = -1;
var level = "14";
var header = "#fn黑体##fs32#B - " + level + " F\r\n\r\n";

function action(e, d, c) {
    status++;
    var b = cm.getEventManager("副本_起源之塔");
    var f = b == null ? null : b.getProperty("stage" + level);
    if (f != null && f.equals("start")) {
        cm.dispose();
        return
    }
    if (cm.getInfoQuest(42001).contains("noHelp=1")) {
        b.setProperty("stage" + level, "start");
        cm.fieldEffect_ScreenMsg("UI/UIWindowPL.img/HiddenCatch/StageImg/start");
        cm.warp(992014001, 0);
        cm.dispose();
        return
    }
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, false);
            cm.setStandAloneMode(true);
            cm.inGameDirectionEvent_AskAnswerTime(30)
        } else {
            if (status === a++) {
                cm.fieldEffect_InsertCanvas(1, 128, 0, 0, 0, 1000, 0);
                cm.inGameDirectionEvent_AskAnswerTime(1000)
            } else {
                if (status === a++) {
                    cm.inGameDirectionEvent_Monologue(header + "#fs22#地下14层虽然看上去很平常，但这里却生活着具有可怕攻击力的蘑菇蝙蝠。\r\n\r\n我们在那些家伙的可视范围之外通过射击将它们消灭，然后通过这里吧。\r\n\r\n我来吸引那些家伙的注意力，你在3分钟之內把它们全都消灭掉。\r\n\r\n提醒你一下，如果子弹没有击中蝙蝠，结界就会受到损伤，我们能在这里停留的时间也就会减少。你开枪时一定要慎重。\r\n\r\n马上开始，准备好。Ready go!", 30000)
                } else {
                    if (status === a++) {
                        cm.inGameDirectionEvent_SetHideEffect(1);
                        cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 1000, 0, 0);
                        cm.curNodeEventEnd(true);
                        cm.setInGameDirectionMode(false, true);
                        cm.setStandAloneMode(false);
                        cm.dispose();
                        b.setProperty("stage" + level, "start");
                        cm.fieldEffect_ScreenMsg("UI/UIWindowPL.img/HiddenCatch/StageImg/start");
                        cm.warp(992014001, 0)
                    } else {
                        cm.dispose()
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};